home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / ECHO.C < prev    next >
Text File  |  1992-11-21  |  1KB  |  44 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef echo
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_echo = "$Header: c:/curses/portable/RCS/echo.c%v 2.0 1992/11/15 03:28:50 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   echo()       - enable/disable terminal echo
  15.  
  16.   X/Open Description:
  17.        These functions control whether characters typed by the user
  18.        are echoed by the input routine.  Initially, input characters
  19.        are echoed.  Subsequent calls to echo() and noecho() do not
  20.        flush type-ahead.
  21.  
  22.   PDCurses Description:
  23.        No additional PDCurses functionality.
  24.  
  25.   X/Open Return Value:
  26.        The echo() function returns OK on success and ERR on error.
  27.  
  28.   X/Open Errors:
  29.        No errors are defined for this function.
  30.  
  31.   Portability:
  32.        PDCurses        int echo( void );
  33.        X/Open Dec '88  int echo( void );
  34.        BSD Curses      int echo( void );
  35.        SYS V Curses    int echo( void );
  36.  
  37. **man-end**********************************************************************/
  38.  
  39. int    echo(void)
  40. {
  41.        _cursvar.echo = TRUE;
  42.        return( OK );
  43. }
  44.